package com.gzbsoft.sc.modules.sys.entity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.ebean.annotation.DbComment;
import io.ebean.annotation.DocEmbedded;
import io.ebean.annotation.DocStore;
import lombok.*;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@DocStore
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "jx_good_desc")
@DbComment("商品描述表")
public class JxGoodDesc extends BaseEntity {
    @DocEmbedded(doc = "id,title")
    @JsonIgnore
    @DbComment("商品id")
    @ManyToOne
    @JoinColumn(name = "jx_good_id")
    private JxGood good;
    @DbComment("商品描述图")
    private String photos;
    @DbComment("商品描述文字")
    private String content;
    @DbComment("商品描述视频")
    private String video;
}
